@charset "utf-8";

@font_url: "/static/js/lib/layer";
@font-face {
    font-family: 'layer';
    src: url("@{font_url}/font/iconfont.eot");
    src: url("@{font_url}/font/iconfont.eot?#iefix") format('embedded-opentype'),
         url("@{font_url}/font/iconfont.woff2") format('woff2'),
         url("@{font_url}/font/iconfont.woff") format('woff'),
         url("@{font_url}/font/iconfont.ttf") format('truetype'),
         url("@{font_url}/font/iconfont.svg#iconfont") format('svg');
}
.layer-iconfont {
    font-family: "layer"!important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

// msg start
.layer-msg {
    transition-duration: 0.2s;
    transition-timing-function: ease-out;
    transition-property: transform,opacity;
}
.layer-msg {
    position: fixed;
    left: 50%;
    max-width: 752px;
    height: 50px;
    line-height: 50px;
    font-size: 14px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 10px rgb(0 0 0 / 20%);
    z-index: 99999;

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        user-select: none;
    }

    p {
        padding: 0 24px;
        word-spacing: nowrap;
    }
}
.layer-msg-middle {
    top: 50%;
    margin-top: -25px;
    transform: scale(0, 0);

    &.xon {
        transform: scale(1,1);
    }
}
.layer-msg-top {
    top: 0;
    transform: translate(0, -100%) scale(1, 1);

    &.xon {
        transform: translate(0, 0) scale(1, 1);
    }
}
.layer-msg-bottom {
    bottom: 0;
    transform: translate(0, 100%) scale(1, 1);

    &.xon {
        transform: translate(0, 0) scale(1, 1);
    }
}
.layer-msg-black {
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
}
.layer-msg-white {
    background-color: rgba(255, 255, 255, 0.95);
    color: #222;
}
// msg end


// icon start
.layer-iconfont {
    margin-right: 5px;

    &.layer-icon-success {
        color: #06a35a;
    }
    &.layer-icon-error {
        color: #f83504;
    }
}
// icon end
